<?php 
namespace app\common\model\database1;

use app\common\config\Database1;
use app\common\model\database2\UserEmail;

class User extends Database1
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'user';
    
    public function emails(){
    	return $this->hasMany(UserEmail::getClassName(),'user_id','user_id');
    }
}